package io.github.wangtianruipopo.cardsdoudizhu.types;

import io.github.wangtianruipopo.cardsdoudizhu.enums.PlayCardsTypeEnum;
import io.github.wangtianruipopo.cardsdoudizhu.impl.DouDiZhuCard;
import io.github.wangtianruipopo.cardsdoudizhu.impl.DouDiZhuPlayCardsType;

import java.util.List;

public class SimplePlayCardsType extends DouDiZhuPlayCardsType {

    @Override
    public PlayCardsTypeEnum getType() {
        return PlayCardsTypeEnum.SIMPLE;
    }

    @Override
    public boolean valid(List<DouDiZhuCard> cards) {
        if (cards == null) return false;
        return cards.size() == 1;
    }

}
